# Maintainer: Antonio Rojas <arojas@archlinux.org>

pkgname=threejs-sage
epoch=1
pkgver=r124
pkgrel=3
pkgdesc='Custom build of Three.js for SageMath'
url='https://threejs.org/'
arch=(any)
license=(MIT)
depends=()
conflicts=(three.js)
provides=(three.js)
source=(https://github.com/sagemath/threejs-sage/archive/$pkgver/$pkgname-$pkgver.tar.gz)
sha256sums=('37e261d8947dc7db1a6cce87772d0e0fcfb5a7d78364e9bb1c9517d0dddcc6c4')

package() {
  cd $pkgname-$pkgver
  install -Dm644 version -t "$pkgdir"/usr/share/threejs-sage
  install -Dm644 build/* -t "$pkgdir"/usr/share/threejs-sage/`cat version`
  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
}
